/* 邀请函页面样式 */
.invitation-header {
    text-align: center;
    padding: 40px 0 20px;
}

/* 信封样式 */
.envelope-container {
    display: flex;
    justify-content: center;
    margin: 50px 0;
    perspective: 1000px;
}

.envelope {
    position: relative;
    width: 90%;
    max-width: 600px;
    height: 400px;
    cursor: pointer;
}

.envelope-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    border-radius: 0 0 20px 20px;
}

.envelope-flap {
    position: absolute;
    width: 100%;
    height: 50%;
    background-color: #FF87B0;
    transform-origin: bottom;
    transform: rotateX(0deg);
    transition: transform 1s ease;
    border-radius: 20px 20px 0 0;
    z-index: 20;
}

.envelope.opened .envelope-flap {
    transform: rotateX(180deg);
}

.envelope-front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background-color: var(--primary);
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.envelope-stamp {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--accent);
    border-radius: 10px;
    transform: rotate(-15deg);
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--dark);
}

/* 邀请函样式 */
.invitation-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 90%;
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    transform: translate(-50%, 20%);
    transition: transform 1s ease 0.5s;
    z-index: 5;
    overflow: hidden;
}

.envelope.opened .invitation-card {
    transform: translate(-50%, -50%);
}

.invitation-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.invitation-content {
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

.party-details {
    background-color: var(--light);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-icon {
    color: var(--primary);
    margin-right: 15px;
    margin-top: 3px;
}

.detail-content {
    flex: 1;
}

.detail-title {
    font-weight: bold;
    margin-bottom: 5px;
}

/* 地图样式 */
.map-container {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
    position: relative;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary);
    font-size: 30px;
    animation: pulse 2s infinite;
}

/* RSVP按钮 */
.rsvp-section {
    text-align: center;
    margin-top: 30px;
}

/* 隐藏的生日帽游戏 */
.hat-game-container {
    margin: 60px 0;
    text-align: center;
}

.game-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.game-description {
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.game-area {
    position: relative;
    height: 300px;
    background-color: var(--light);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

.birthday-hat {
    position: absolute;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.birthday-hat.visible {
    opacity: 1;
}

.birthday-hat:hover {
    transform: scale(1.2) rotate(10deg);
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

/* 礼花效果 */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
}

@keyframes hat-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .envelope {
        height: 300px;
    }
    
    .invitation-card {
        padding: 20px 15px;
    }
    
    .invitation-title {
        font-size: 1.5rem;
    }
    
    .game-area {
        height: 250px;
    }
}
